package com.googlecode.messwertepi.util;

import java.io.Closeable;
import java.io.IOException;

/**
 * Created by eike on 15.07.14.
 */
public class IoUtil {

    /**
     * Closes all closeables.
     *
     * @param closeables the closeables to close
     */
    public static void safeClose(Closeable... closeables) {
        for (Closeable c : closeables) {
            if (c != null) {
                try {
                    c.close();
                } catch (IOException e) {
                }
            }
        }

    }
}
